package org.zhs.web.controller;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.zhs.web.param.TestParam;
import org.zhs.common.result.Result;

/**
 * 测试Controller
 */
@RequestMapping("/test")
@RestController
public class TestController {

    /**
     * 测试请求
     * @param testParam
     * @return
     */
    @PostMapping("/success")
    public Result success(@Validated TestParam testParam){
        return Result.success();
    }

}
